package jm.nj.day08jia.demo07;

/*
 * 字符反转
 *
 * abcde--->edcba
 *
 * sb
 *
 * String s
 * String
 * */
public class Test05 {
    public static void main(String[] args) {
        String s = "abcde";
        String s1 = change(s);
        System.out.println(s1);
    }

    private static String change(String s) {
        StringBuilder sb = new StringBuilder(s);
        sb.reverse();
        s = sb.toString();
        return s;
    }
}
